# @Author: dyiwen
# @Date:   2020-09-21 20:03:54
# @Last Modified by:   dyiwen
# @Last Modified time: 2020-09-21 20:04:17
#Add my own tab automatic completion
function _nacosctl_tool() {
    COMPREPLY=()
    local cur=${COMP_WORDS[COMP_CWORD]};
    local com=${COMP_WORDS[COMP_CWORD-1]};
    case $com in
    'nacosctl')
        COMPREPLY=($(compgen -W 'check get describe publish delete import export login logout' -- $cur))
        ;;
    *)
        ;;
    esac
    return 0
}
complete -F _nacosctl_tool nacosctl
#############################################
